<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<!DOCTYPE html>
<html>
<head lang="zh-CN">
<title>test</title> 
<script type="text/javascript" src="static/jquery/1.6/jquery.js"></script>
</head>
<body> 
<div id="console"></div>
	<script type="text/javascript">  
    $.getJSON("test/query?callback=?",  
    function(result) {  
    	console.log("jsonp result:"+JSON.stringify(result))
        $("#console").append("<div>"+JSON.stringify(result)+"</div></br>")	
    });  
</script>
	<script type="text/javascript">  
    $.ajax({  
        url:"test/query",  
        dataType:'jsonp',  
        data:'',  
        jsonp:'callback',  
        success:function(result) {  
        	console.log("jsonp result:"+JSON.stringify(result))
            $("#console").append("<div>"+JSON.stringify(result)+"</div></br>")	
        },  
        timeout:3000  
    });  
</script>
	<script type="text/javascript">  
    $.get('test/query?callback=?', {name: encodeURIComponent('tester')}, function (result) { 

    	console.log("jsonp result:"+JSON.stringify(result))
        $("#console").append("<div>"+JSON.stringify(result)+"</div></br>")	
    	}
    , 'jsonp');  

</script>
	<script type="text/javascript">  
    $.get('test/save?callback=?', {name: encodeURIComponent('tester')}, function (result) { 

    	console.log("jsonp result:"+JSON.stringify(result))
    $("#console").append("<div>"+JSON.stringify(result)+"</div></br>")	
    }
    , 'jsonp');  

</script>
</body>
</html>